package com.nercel.dsj.gksales.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nercel.dsj.gksales.dao.mapper.SpikeRecordMapper;
import com.nercel.dsj.gksales.model.entity.SpikeRecord;
import com.nercel.dsj.gksales.service.SpikeRecordService;

import lombok.RequiredArgsConstructor;

@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@Transactional
public class SpikeRecordServiceImpl implements SpikeRecordService {

	@Autowired
	private SpikeRecordMapper spikeRecordMapper;


	@Override
	public void save(SpikeRecord t) {
		spikeRecordMapper.insertSelective(t);
	}

	@Override
	public void update(SpikeRecord t) {
	}

	@Override
	public SpikeRecord findById(Integer id) {
		return spikeRecordMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<SpikeRecord> listAll() {
		return null;
	}

	@Override
	public void delete(Integer id) {
	}
}
